package cn.net.sinodata.system.domain.bo;

import cn.net.sinodata.system.domain.PmClearingDeadline;
import cn.net.sinodata.common.mybatis.core.domain.BaseEntity;
import cn.net.sinodata.common.core.validate.AddGroup;
import cn.net.sinodata.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 清算截止时间业务对象 pm_clearing_deadline
 *
 * @author yinliangyun
 * @date 2025-10-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PmClearingDeadline.class, reverseConvertGenerate = false)
public class PmClearingDeadlineBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 产品编号
     */
    @NotBlank(message = "产品编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productCode;

    /**
     * 产品名称
     */
    @NotBlank(message = "产品名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productName;

    /**
     * 默认账户行
     */
    @NotBlank(message = "默认账户行不能为空", groups = { AddGroup.class, EditGroup.class })
    private String accountBank;

    /**
     * 需提前清结算天数
     */
    @NotBlank(message = "需提前清结算天数不能为空", groups = { AddGroup.class, EditGroup.class })
    private String clearingDate;

    /**
     * 平台截止时间
     */
    @NotNull(message = "平台截止时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date platformDeadline;

    /**
     * 应急清结算截止时间
     */
    @NotNull(message = "应急清结算截止时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date crashTime;

    /**
     * 单笔处理时长
     */
    @NotNull(message = "单笔处理时长不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer processingTime;

    /**
     * 备注
     */
    private String remarks;

}
